package com.nhncorp.yammer.bean;

public enum CommentColumn {
	COMMENTKEY("comment_key"), CONTENT("content"), USERID("user_id"), POSTKEY("post_key"), CREATEDATE("create_date");

	private final String name;

	CommentColumn(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public static CommentColumn find(String columnName) {
		for (CommentColumn each : CommentColumn.values()) {
			if (each.name.equals(columnName)) {
				return each;
			}
		}
		throw new IllegalArgumentException();
	}
}
